//
//  LSZWithdrawalTableViewCell.m
//  JKFuYinProject
//
//  Created by 九酷 on 2018/3/28.
//  Copyright © 2018年 LC. All rights reserved.
//

#import "LSZWithdrawalTableViewCell.h"

@implementation LSZWithdrawalTableViewCell

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.imageViewType = [[UIImageView alloc]init];
        self.imageViewType.layer.cornerRadius = 5.0;
        self.imageViewType.layer.masksToBounds = YES;
//        self.imageViewType.backgroundColor = [UIColor redColor];
        [self addSubview:self.imageViewType];
        if(ScreenWidth ==414){
            self.imageViewType.frame = CGRectMake(10,20,90,90);
        }else
        if(ScreenWidth ==375){
            self.imageViewType.frame = CGRectMake(10,20,90,90);
        }else{
            self.imageViewType.frame = CGRectMake(10,20,80,80);
        }

        self.labelTitle = [[UILabel alloc]init];
        self.labelTitle.textColor = titleColorLSZ;
        [self addSubview:self.labelTitle];
        if(ScreenWidth ==414){
            self.labelTitle.frame = CGRectMake(CGRectGetMaxX(self.imageViewType.frame)+5, 25, ScreenWidth-CGRectGetMaxX(self.imageViewType.frame)-10, 25);
        }else
        if(ScreenWidth ==375){
            self.labelTitle.frame = CGRectMake(CGRectGetMaxX(self.imageViewType.frame)+5, 25, ScreenWidth-CGRectGetMaxX(self.imageViewType.frame)-10, 25);
        }else{
            self.labelTitle.frame = CGRectMake(CGRectGetMaxX(self.imageViewType.frame)+5, 22, ScreenWidth-CGRectGetMaxX(self.imageViewType.frame)-10, 20);
        }
        self.labelTitle = [LSZSpecialPackaging setLabel_14_5_Size:self.labelTitle];

//        self.labelValue = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.labelTitle.frame)+10, 22,ScreenWidth-CGRectGetMaxX(self.labelTitle.frame)-20, 20)];
//        self.labelValue.textColor = RGBColor(147, 147, 147);
//        self.labelValue.font = FONT_14;
//        self.labelValue.text = @"10000福音值";
//        self.labelValue.textAlignment = NSTextAlignmentRight;
//        [self addSubview:self.labelValue];

//       self.labelNumber = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.labelTitle.frame)+10,CGRectGetMaxY(self.labelTitle.frame)+5,ScreenWidth-CGRectGetMaxX(self.labelTitle.frame)-20, 20)];
//        self.labelNumber.textColor = RGBColor(147, 147, 147);
//        self.labelNumber.font = FONT_12;
//        self.self.labelNumber.text = @"✖️1";
//        self.labelNumber.textAlignment = NSTextAlignmentRight;
//        [self addSubview:self.labelNumber];

        self.labelTime = [[UILabel alloc]init];
        self.labelTime.textColor = lightColor;
//        self.labelTime.text = @"2018-5-12";
        [self addSubview:self.labelTime];
        if(ScreenWidth ==414){
            self.labelTime.frame = CGRectMake(CGRectGetMaxX(self.imageViewType.frame)+5, CGRectGetMaxY(self.imageViewType.frame)-25, ScreenWidth-CGRectGetMaxX(self.imageViewType.frame)-10, 25);
        }else
        if(ScreenWidth ==375){
            self.labelTime.frame = CGRectMake(CGRectGetMaxX(self.imageViewType.frame)+5, CGRectGetMaxY(self.imageViewType.frame)-25, ScreenWidth-CGRectGetMaxX(self.imageViewType.frame)-10, 25);
        }else{
            self.labelTime.frame = CGRectMake(CGRectGetMaxX(self.imageViewType.frame)+5, CGRectGetMaxY(self.imageViewType.frame)-20, ScreenWidth-CGRectGetMaxX(self.imageViewType.frame)-10, 20);
        }
        self.labelTime = [LSZSpecialPackaging setLabel_14_5_Size:self.labelTime];
    }
    return self;
}
@end
